{include file='fcworker/fc_head'}
<style type="text/css">
    .td-img{
        width: 25px;
        height: 25px;
        border-radius: 25px;
    }
    .ac-notice{
        width: 92%;
        margin: 8px auto;
        padding: 8px;
        line-height: 20px;
        text-align: center;
        display: block;
        font-size: 13px;
        box-shadow: 0 0  5px 5px rgba(0, 0, 0, 0.06);
        border-radius: 8px;
    }
    .picker-form{
        display: inline;
        width: 50%;
    }
    .setTitle{
        background: url("https://css2020.yixuan.net/2020css/fcworker/images/settitbg.png") center no-repeat;
        text-align: center;
        line-height: 1.37rem;
        color: #fff;
        font-size: .45rem;
        width: 7.05rem;
        height: 1.37rem;
        background-size: 100% 1.37rem;
        margin: .2rem auto 0;
        position: fixed;
        left: 0.2rem;
        top: 0;
        z-index: 2;
        overflow: hidden;
    }
    .h137{
        height: 1.37rem;
    }
</style>
<body style="background:#f8f8f8">
<div id="mescroll" class="mescroll">
    <div id="app">
        <a href="/{php echo createMobileUrl('x_index',array('themeid'=>$themeid));}" class="homeTag"><img src="{$_G['URL']['FCWORK_CSS']}images/homeBtn.png"></a>
        <div class="setTitle">
            <a href="javascript:history.back(-1)"></a>
            公司排名
        </div>
        <div class="h137"></div>
        <!--公司总排名-->
        <div class="activeBox">
            <div class="activeBar">
                <div class="activeInfor activeTab">
                    <div class="tabTit">公司总排名
                    </div>
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <th>排名</th><th>公司</th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid));}">成交</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></th>
                            {if $myworker['level'] == '1' }
                            <th >明细</th>
                            {/if}
                        </tr>
                        {loop $result['company'] $key $item}
                        <tr>
                            <td>{php echo ($key+1);}</td>
                            <td>{$item['name']}</td>
                            <td>{$item['newfans']}</td>
                            <td>{$item['forward']}</td>
                            <td>{$item['scansum']}</td>
                            <td>{$item['record']}</td>
                            <td>{$item['recordxx']}</td>
                            <td>{$item['fee']}</td>
                            {if $myworker['level'] == '1' }
                            <td><a href="/{php echo createMobileUrl('x_grouprank',array('themeid'=>$themeid,'company'=>$item['company']));}">查看</a></td>
                            {/if}
                        </tr>
                        {/loop}
                    </table>
                </div>
            </div>
        </div>
        <!--公司今日排名-->
        <div class="activeBox">
            <div class="activeBar">
                <div class="activeInfor activeTab">
                    <div class="tabTit">公司今日排名
                    </div>
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <th>排名</th>
                            <th>公司</th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid));}">成交</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></th>
                        </tr>
                        {loop $result['companytoday'] $key $item}
                        <tr>
                            <td>{php echo ($key+1);}</td>
                            <td>{$item['name']}</td>
                            <td>{$item['newfans']}</td>
                            <td>{$item['forward']}</td>
                            <td>{$item['scansum']}</td>
                            <td>{$item['record']}</td>
                            <td>{$item['recordxx']}</td>
                            <td>{$item['fee']}</td>
                        </tr>
                        {/loop}
                    </table>
                </div>
            </div>
        </div>
        <!--公司昨日排名-->
        <div class="activeBox">
            <div class="activeBar">
                <div class="activeInfor activeTab">
                    <div class="tabTit">公司昨日排名
                    </div>
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <th>排名</th>
                            <th>公司</th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid));}">成交</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></th>
                        </tr>
                        {loop $result['companyyesterday'] $key $item}
                        <tr>
                            <td>{php echo ($key+1);}</td>
                            <td>{$item['name']}</td>
                            <td>{$item['newfans']}</td>
                            <td>{$item['forward']}</td>
                            <td>{$item['scansum']}</td>
                            <td>{$item['record']}</td>
                            <td>{$item['recordxx']}</td>
                            <td>{$item['fee']}</td>
                        </tr>
                        {/loop}
                    </table>
                </div>
            </div>
        </div>
        <!--公司前日排名-->
        <div class="activeBox">
            <div class="activeBar">
                <div class="activeInfor activeTab">
                    <div class="tabTit">公司前日排名
                    </div>
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <th>排名</th>
                            <th>公司</th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'xfs'));}">新粉</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'zf'));}">转发</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'ll'));}">浏览</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid));}">成交</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'xx'));}">线下</a></th>
                            <th><a href="/{php echo createMobileUrl('x_shoprank',array('themeid'=>$themeid,'paixu'=>'fee'));}">实收</a></th>
                        </tr>
                        {loop $result['companybeforeyesterday'] $key $item}
                        <tr>
                            <td>{php echo ($key+1);}</td>
                            <td>{$item['name']}</td>
                            <td>{$item['newfans']}</td>
                            <td>{$item['forward']}</td>
                            <td>{$item['scansum']}</td>
                            <td>{$item['record']}</td>
                            <td>{$item['recordxx']}</td>
                            <td>{$item['fee']}</td>
                        </tr>
                        {/loop}
                    </table>
                </div>
            </div>
        </div>

        <div class="ac-notice">
            <div style="color: #4490e2">未出现在排名中的，代表当日没有任何宣传</div>
            <div style="color: #ccc;">点击标题可按关键字排名</div>
        </div>


        <div class="h110"></div>
    </div>
</div>

</body>
<!--  下拉刷新-->
<script>
    const mescroll = new MeScroll("mescroll", {
        down: {
            auto: false,
            callback: () => {
                mescroll.endSuccess();
                setTimeout(() => {
                    window.location.reload();
                },500)
            }
        },
        up: {
            use: false
        }
    })
</script>
<script>
    $('.choseBar2 span').click(function(){
        $(this).addClass('on').siblings().removeClass('on');
    })
    $('.moreChose span').click(function(){
        if($(this).hasClass('on')){
            $(this).removeClass('on')
        }else{
            $(this).addClass('on')
        }
    })
    function submitForm() {
        var options = $("#select-pick option:selected");
        var val = options.val();
        if (val>=0){
            var jump_url = "/{php echo createMobileUrl('X_ranktuan',array('themeid'=>$themeid,'op'=>'rankfans'));}" + '&paixu='+val;
            self.location.href = jump_url;
        }
    }
</script>
{include file='fcworker/fc_base_foot'}
</html>